package com.sixnimmt.app.client.game.view.panel;

import com.google.gwt.user.client.ui.AbsolutePanel;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Panel;
import com.sixnimmt.app.client.i18n.SixNimmtMessages;

public class PlayerPanel extends AbsolutePanel {

	public Label playerName;
	public Label playerScore;
	public Label takenCards;
	public Panel choosenCard;

	public PlayerPanel(SixNimmtMessages messages, String player) {
		super();

		playerName = new Label(player + " : ");
		playerName.setStyleName("bold");
		add(playerName, 10, 10);

		playerScore = new Label("0");
		playerScore.setStyleName("bold");
		add(playerScore, 94, 10);

		add(new Label(messages.takenCards() + " : "), 10, 28);

		takenCards = new Label("0");
		add(takenCards, 94, 28);

		choosenCard = new AbsolutePanel();
		add(choosenCard, 10, 46);

	}
}
